package com.netease.framework.a;

import com.netease.framework.b.b;
import com.netease.framework.b.f;
import java.util.Hashtable;
import java.util.Vector;

public class l extends f
  implements c
{
  static final String b = "HttpDataChannel";
  Hashtable c = new Hashtable();
  Hashtable d = new Hashtable();
  a e;

  public l(com.netease.framework.b.c paramc, a parama)
  {
    super(paramc);
    this.e = parama;
  }

  private void a(m paramm, Object paramObject, int paramInt1, int paramInt2)
  {
    Integer localInteger = new Integer(paramm.i());
    synchronized (this.c)
    {
      com.netease.framework.b.a locala = (com.netease.framework.b.a)this.c.remove(localInteger);
      if (locala != null)
        this.d.remove(new Integer(locala.m()));
      if (locala != null)
      {
        b localb = locala.a(paramObject, paramInt1, paramInt2);
        this.a.a(localb);
      }
      return;
    }
  }

  private void a(Vector paramVector, Object paramObject, int paramInt1, int paramInt2)
  {
    Vector localVector = new Vector();
    Hashtable localHashtable = this.c;
    monitorenter;
    for (int i = 0; ; i++)
      try
      {
        if (i < paramVector.size())
        {
          m localm = (m)paramVector.elementAt(i);
          com.netease.framework.b.a locala = (com.netease.framework.b.a)this.c.remove(new Integer(localm.i()));
          if (locala == null)
            continue;
          this.d.remove(new Integer(locala.m()));
          localVector.add(locala);
        }
        else
        {
          monitorexit;
          if (localVector.size() > 0)
          {
            b localb = ((com.netease.framework.b.a)localVector.elementAt(0)).a(localVector, paramObject, paramInt1, paramInt2);
            this.a.a(localb);
          }
          return;
        }
      }
      finally
      {
        monitorexit;
      }
  }

  public void a()
  {
    synchronized (this.c)
    {
      this.c.clear();
      this.d.clear();
      if (this.e != null)
        this.e.a();
      return;
    }
  }

  public void a(int paramInt1, int paramInt2)
  {
    this.e.a(paramInt1, paramInt2);
  }

  public void a(m paramm, int paramInt, Object paramObject)
  {
    a(paramm, paramObject, 1, paramInt);
  }

  public void a(m paramm, Object paramObject)
  {
    a(paramm, paramObject, 0, 0);
  }

  public void a(com.netease.framework.b.a parama)
  {
    Integer localInteger1 = new Integer(parama.m());
    synchronized (this.c)
    {
      m localm = (m)this.d.remove(localInteger1);
      if (localm != null)
      {
        Integer localInteger2 = new Integer(localm.i());
        localm.r();
        this.c.remove(localInteger2);
      }
      return;
    }
  }

  public void a(Class paramClass)
  {
    if (paramClass == null);
    while (true)
    {
      return;
      this.e.a(paramClass);
    }
  }

  public void a(Object paramObject, com.netease.framework.b.a parama)
  {
    if ((paramObject == null) || (!(paramObject instanceof m)));
    while (true)
    {
      return;
      m localm = (m)paramObject;
      if (parama == null)
      {
        localm.b(0);
        this.e.a(localm, 0);
        continue;
      }
      Integer localInteger1 = new Integer(localm.i());
      Integer localInteger2 = new Integer(parama.m());
      localm.a(this);
      localm.b(0xFF & parama.j());
      synchronized (this.c)
      {
        this.c.put(localInteger1, parama);
        this.d.put(localInteger2, localm);
        this.e.a(localm, parama.j());
      }
    }
  }

  public void a(Vector paramVector, int paramInt, Object paramObject)
  {
    a(paramVector, paramObject, 1, paramInt);
  }

  public void a(Vector paramVector, Object paramObject)
  {
    a(paramVector, paramObject, 0, 0);
  }
}

/* Location:           D:\android\hack\dex2jar-0.0.9.8\classes_dex2jar.jar
 * Qualified Name:     com.netease.framework.a.l
 * JD-Core Version:    0.6.0
 */